<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript"
	src="client/lib/jquery/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="client/lib/jsonrpc2/jsonRpc/Json.js"></script>
<script type="text/javascript"
	src="client/lib/jsonrpc2/jsonRpc/JsonRpcProxy.js"></script>
</head>
<body>

<script type="text/javascript">
			
			var rpc = new JsonRpcProxy();
			rpc.createProxy("server/Services/TestService.php", function (proxy)
			{
				var test = {a: "hi", b:23};
				proxy.test(test, 34, {
					success: function(resp)
					{
						alert(resp.a);
						alert(resp.b);
					}, 
					error:	function(error)
					{
						alert(error.message);
					},
					serverError: function(XMLHttpRequest, textStatus, errorThrown)
					{
						alert(textStatus);
					}});
			}
			);
			
		</script>
</body>
</html>
